#version 330 core
layout (location = 0) in vec3 pos;          // 位置坐标
layout (location = 1) in vec3 norm_vec;     // 法向量
layout (location = 2) in vec2 tex_cord;     // 纹理坐标
layout (location = 3) in mat4 inst_model_mats;

uniform vec2 use_nouse_instancing;
uniform mat4 scam_proj_mat;
uniform mat4 scam_view_mat;
uniform mat4 model_mat;

void main() {
    mat4 final_model_mat = use_nouse_instancing[0] * inst_model_mats + use_nouse_instancing[1] * model_mat;
    gl_Position = scam_proj_mat * scam_view_mat * final_model_mat * vec4(pos, 1.0);
}
